package com.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
public interface UsersDao {
	public Map<String,Object> query(@Param("account")String account);
	public Map<String,Object> queryall(@Param("account")String account,@Param("password")String password);
	public void add(
      @Param("account")String account,
	  @Param("password")String password,
	  @Param("account")String nickname,
	  @Param("reg_date")String reg_date );
	public Map<String,Object> queryuser(@Param("id") String id);
    public Map<String,Object> querydate();
    public Map<String,Object> querymoney_out(@Param("user_id")String user_id);
    public Map<String,Object> querymoney_in(@Param("user_id")String user_id);
    public List<Map> queryshouru(@Param("user_id")String user_id);
    public List<Map> queryzhichu(@Param("user_id")String user_id);
    public void addnewpay(
      @Param("user_id")String user_id,
      @Param("money_out")String money_out,
      @Param("kind")String kind,
      @Param("place")String place,
      @Param("remark")String remark );
    public void addnewin(
      @Param("user_id")String user_id,
      @Param("money_in")String money_in,
      @Param("kind")String kind,
      @Param("place")String place,
      @Param("remark")String remark,
      @Param("date_time")String date_time );
    public Map<String ,Object> lastid();
    public List<Map> queryquery(
	  @Param("user_id")String user_id,
   	  @Param("money_in")String money_in,
   	  @Param("money_out")String money_out,
   	  @Param("kind")String kind,
   	  @Param("place")String place,
   	  @Param("remark")String remark,
   	  @Param("date_time")String date_time);
    public List<Map> delete(
	  @Param("user_id")String userId,
	  @Param("id")String id );
    public void delete1(
	  @Param("user_id")String userId,
	  @Param("id")String id );   
}
